.TH E1432_SET_AUTO_RANGE_MODE 3 E1432
.SH NAME
.nf
e1432_set_auto_range_mode \- Set auto-range mode
e1432_get_auto_range_mode \- Get auto-range mode
.fi
.IX e1432_set_auto_range_mode(3) 3
.IX e1432_get_auto_range_mode(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_auto_range_mode(E1432ID hw, SHORTSIZ16 ID,
                                     SHORTSIZ16 mode)
SHORTSIZ16 e1432_get_auto_range_mode(E1432ID hw, SHORTSIZ16 ID,
                                     SHORTSIZ16 *mode)
.cE
.SH DESCRIPTION

\fIe1432_set_auto_range_mode\fR sets the auto-range mode, of a single
channel or group of channels \fIID\fR, to the value given in
\fImode\fR.

\fIe1432_get_auto_range_mode\fR returns the current value of the
auto-range mode, of a single channel or group of channels \fIID\fR,
into a memory location pointed to by \fImode\fR.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fImode\fR specifies the auto-range mode.  The valid values are:

\fBE1432_AUTO_RANGE_MODE_DEF\fR During an auto-range, the input range
will be adjusted up or down until the best range setting is found.

\fBE1432_AUTO_RANGE_MODE_UP\fR During an auto-range, the input range
will never be decreased.

\fBE1432_AUTO_RANGE_MODE_DOWN\fR During an auto-range, the input range
will never be increased.

.SH "RESET VALUE"
After a reset, the auto-range mode is set to
\fBE1432_AUTO_RANGE_MODE_DEF\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_auto_range
.ad
